﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Utils.SoftReferences;

namespace GameObjects
{
    [Serializable]
    public class WaterborneUnit : Unit
    {
        [XmlIgnore]
        public IList<Hex> Coastline;
        [XmlIgnore]
        public Hex LastSeaHex;

        public int LastSeaHexId
        {
            get { return LastSeaHex.Id; }
        }

        public WaterborneUnit()
        {
        }

        public WaterborneUnit(SoftRefSet softRefSet, string name, Hex cell, TerrainType terrainType, Faction player, int moveLimit, float quality, int quantity, float baseMorale, float initialMorale, int vision, TerrainType concealmentTerrain, bool hinderedByColdWeather, IEnumerable<TerrainType> terrainTypes) 
            : base(softRefSet, name, cell, MetaData.MoveType.Water, terrainType, player, moveLimit, quality, quantity, baseMorale, initialMorale, vision, concealmentTerrain, hinderedByColdWeather, terrainTypes)
        {
            
        }
    }
}
